<template>

  <div>
  <el-dialog title="详细信息" :visible.sync="dialogFormVisible" width="80%">

    <el-form :inline="true" :model="form" class="demo-form-inline" label-width="140px">
      <el-row>
        <el-col :span="12">
          <el-form-item label="获票人名称：" >
            <span>{{form.hprmc}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="购买方电话：" >
            <span>{{form.gmfdh}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="开票人纳税人识别号：" >
            <span>{{form.kprnsrsbh}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="购买方开户行：" >
            <span>{{form.gmfkhh}}</span>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="购买方地址：" >
            <span>{{form.gmfdz}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="购买方银行账号：" >
            <span>{{form.gmfyhzh}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>

      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="启用状态：" >
            <span>{{form.infoStatusStr}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="维护人员：" >
            <span>{{form.updateUserName}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="维护时间：" >
            <span>{{form.updatedTime}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="维护机构：" >
            <span>{{form.updateDeptName}}</span>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">关 闭</el-button>
<!--      <el-button type="primary" @click="saveUpdateSubmit">确 定</el-button>-->
    </div>
  </el-dialog>
  </div>
</template>

<script>
import {throttle} from "lodash";
import { detail, saveUpdate } from '@/api/custom.js'

export default {
  name:"custom-detail",
  data() {
    return {
      dialogFormVisible: false,
      form: {},
      id:null,
    };
  },
  methods: {
    async initInfo(id) {
      this.loading = true;
      this.id = id;
      if (this.id){
        let {data, code, message} = await detail(
            {id: this.id}
        );
        if (code == 200) {
          this.form = data
        } else {
          // this.$message({
          //   type: 'error',
          //   message: message,
          // })
        }
      }
      this.loading = false;
    },

  }
};
</script>
<style scoped>

</style>